using UnityEngine;

public class LookAtCamera : MonoBehaviour
{
	private Transform mainCamera;

	private Transform myTransform;

	private void Awake()
	{
		mainCamera = Camera.main.transform;
		myTransform = base.transform;
	}

	private void LateUpdate()
	{
		myTransform.rotation = Quaternion.LookRotation(myTransform.position - mainCamera.position);
	}
}
